"""
最基本的模块处理器
"""
from .processors import *

class ProcessorSequence():
    def __init__(self, cfg:dict):
        self.processor_list = []
        for cls_name, cls_cfg in cfg.items():
            self.processor_list.append(eval(cls_name)(**cls_cfg))
    def __call__(self, data):
        for processor_ in self.processor_list:
            data = processor_(data)
        return data